<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<script type="text/javascript">
		var name ="ls" ;
		var obj = {name:"zs",age:12,gender:"male",say:function(){}};
		with(obj){
		    console.log(name); 
		}
	</script>
</body>
</html>